package org.geometerplus.fbreader.fbreader;

import com.chineseall.mine.activity.MyVipActivity;
import com.chineseall.reader.ui.ActivityHelper;
import com.chineseall.readerapi.entity.Chapter;
import com.iwanvi.common.report.StaticsLogService;
import com.iwanvi.common.utils.ToastUtil;

/**
 *
 * 开通VIP
 * Created by Tony on 2018/11/30.
 */

public class ReadOpenVIPAction extends FBAction {

    public ReadOpenVIPAction(FBReaderApp fbreader) {
        super(fbreader);
    }

    @Override
    protected void run(Object... params) {
        Chapter mReadingChapter = null;
        if(params != null && params.length > 2){
            Object[] objects = (Object[]) params[2];
            mReadingChapter = (Chapter) objects[0];
        }
        StaticsLogService.sendLog("3613","1-4");
        ActivityHelper.doJump(Reader.getAppContext(), MyVipActivity.Instance(Reader.getAppContext(),Reader.getAppContext().getShelfItemBook(),mReadingChapter, 0,"3601"));
    }
}
